package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.Goods;

import java.util.List;

public interface GoodsService extends IService<Goods> {
    void removeCartGoods(Long id);

    List<Goods> findAll();

    List<Goods> recommend();

    List<Goods> sales();

    IPage<Goods> pageByCategory(Page<Goods> objectPage, Long id);

    IPage<Goods> findPage(Page<Goods> objectPage, String goodsName, Long createUserId);
}
